package com.ysx.teacher.day20210923.ch08.client;

import com.ysx.teacher.day20210923.ch08.dao.StudentDao;
import com.ysx.teacher.day20210923.ch08.dao.impl.StudentDaoImpl;
import com.ysx.teacher.day20210923.ch08.entity.StudentEntity;

import java.io.FileInputStream;
import java.io.InputStream;
import java.util.Properties;

public class Client {

    public static void main(String[] args) throws  Exception {

       /* StudentDao dao = new StudentDaoImpl();

        StudentEntity stu = new StudentEntity();
        stu.setId(10086);
        stu.setStudentName("张无忌");
        stu.setStudentAge(18);

        *//*int rs =dao.addStudent(stu);
        System.out.println(rs);*//*

        System.out.println(dao.findStudentById(10086));;*/

        StudentDao dao = new StudentDaoImpl();
        System.out.println(dao.findStudentById(10086));




    }
}
